package com.pj.compose.common.config

import com.blankj.utilcode.BuildConfig
import com.blankj.utilcode.util.LogUtils
import com.blankj.utilcode.util.ToastUtils

object StringExt {
    fun String.toast() {
        ToastUtils.showShort(this)
    }

    fun String.logd() {
        LogUtils.d(this)
    }

    fun String.loge() {
        LogUtils.e(this)
    }

    fun String.debugPrint() {
        if (BuildConfig.DEBUG) {
            println(this)
        }
    }
}